import AdapterManager, { AdaptaterType } from "../../UIFrame/AdapterManager";
import { FormType } from "../../UIFrame/config/SysDefine";
import TipsManager from "../../UIFrame/TipsManager";
import UIBase from "../../UIFrame/UIBase";
import UIManager from "../../UIFrame/UIManager";
import SettingUI from "./SettingUI";
import SignUI from "./sign/SignUI";


const {ccclass, property} = cc._decorator;

@ccclass
export default class MenuLeftUI extends UIBase {

    formType = FormType.FixedUI;
    
    static prefabPath = "prefabs/UIForms/MenuLeftUI";
    
    start () {
        AdapterManager.getInstanse.adapatByType(AdaptaterType.Left, this.node, 60);
    }
    
    onShow() {
     
    }

    onClickEvent_openSettingUI(e: cc.Event.EventTouch){
        let pos = e.getLocation();
        SettingUI.openView(pos);

        // UIManager.getInstance().openUIForm('prefabs/UIForms/SettingUI');
    }

    onClickEvent_openSignUI(e: cc.Event.EventTouch){
        let pos = e.getLocation();
        SignUI.openView(pos);
    }


    onHide() {
        
    }
}
